#include "swordsman.h"

Texture* Swordsman::swordsman_texture = nullptr;

Swordsman::Swordsman(): Player("Swordsman", 200, 20, 3, swordsman_texture) {
    if (swordsman_texture == nullptr) {
        swordsman_texture = new Texture("swordsman.png");
        this->texture = swordsman_texture;
    }
}

void Swordsman::attack(Unit* u) {
    u->HP.Current -= 50;
}
